package md.mru.core.domains.administration;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "tree_folders", schema = "c##mru_optimized")
public class TreeFolder implements Serializable {

    private static final long serialVersionUID = -5979230460423752310L;

    @EmbeddedId
    private TreeFolderId id;

    @Column(name = "valid_from")
    private Date validFrom;
    @Column(name = "valid_to")
    private Date validTo;
    @Column(name = "base")
    private boolean base;
    @Column(name = "active")
    private boolean active;

    public TreeFolderId getId() {
        return id;
    }

    public void setId(TreeFolderId id) {
        this.id = id;
    }

    public Date getValidFrom() {
        return validFrom;
    }

    public void setValidFrom(Date validFrom) {
        this.validFrom = validFrom;
    }

    public Date getValidTo() {
        return validTo;
    }

    public void setValidTo(Date validTo) {
        this.validTo = validTo;
    }

    public boolean isBase() {
        return base;
    }

    public void setBase(boolean base) {
        this.base = base;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }
}


